const domUtils = {
  hasClass (dom, includeName) {
    try {
      let className = dom.className
      return className.split(' ').indexOf(includeName) >= 0
    } catch (e) {}
  },
  hasStyle (dom, name) {
    try {
      let style = dom.getAttribute('style')
      return style.indexOf(name) >= 0
    } catch (e) {}
  }
}
export default domUtils
